package cn.com.jit.hl.demo.pattern.singleton;

/**
 * 饿汉式单例
 *@author HL
 *@date 2020-09-10
*/
public class HungrySingleton {
    private static HungrySingleton instance = new HungrySingleton();

    private HungrySingleton(){

    }

    public static HungrySingleton getInstance(){
        return instance;
    }
}
